package com.binyouwei.designpatterns.behavior.mediator;

/**
 * @author 宾有为
 * @date 2024/7/16 19:53
 * @link https://blog.csdn.net/baidu_41616022?type=blog
 * @describe：
 **/
public class MediatorUser {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public MediatorUser(String name){
        this.name  = name;
    }

    public void sendMessage(String message){
        MediatorChatRoom.showMessage(this,message);
    }
}